import { axios } from '../../utils/request'

const api = {
    save: '/erp/implement/save',
    examine: '/erp/implement/examine',
    delete: '/erp/implement/delete',
    details: '/erp/implement/getDetail',
    list: '/erp/implement/getList',
}
/**
 * 保存
 */
export function save(data) {
    return axios({
        url: api.save,
        method: "post",
        data: data
    })
}

/**
 * 审核
 */
export function examine(data) {
    return axios({
        url: api.examine,
        method: "get",
        params: data
    })
}
/**
 * 详情
 */
export function details(data) {
    return axios({
        url: api.details,
        method: "get",
        params: data
    })
}

/**
 * 删除
 */
export function remove(data) {
    return axios({
        url: api.delete,
        method: "DELETE",
        params: data
    })
}

/**
 * 列表
 */
export function getList(data) {
    return axios({
        url: api.list,
        method: "get",
        params: data
    })
}
